/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.src.ptit.javatraining.huynh.btvn2;

import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileReader;
import java.io.FileWriter;

/**
 *
 * @author user
 */
public class Bai3 {

    public static void main(String[] args) {
        String s;
        try {
            FileReader f3 = new FileReader("Bai3.in");
            BufferedReader fin = new BufferedReader(f3);
            s = fin.readLine();
            if (s.length() < 1) {
                throw new Exception("NULL POINTER");
            }
            fin.close();
            int m = Integer.parseInt(s);
            StringBuffer s2 = new StringBuffer(s);
            File fm = new File("Bai3.out");
            fm.createNewFile();
            BufferedWriter fout = new BufferedWriter(new FileWriter(fm));
            StringBuffer si = new StringBuffer(s);
            if (si.toString().equals(s2.reverse().toString())) {
                fout.write("YES.");
            } else {
                fout.write("NO.");
            }
            fout.close();
        } catch (Exception e) {
            System.out.println("ERROR " + e);
        }
    }
}
